package base.thread.threadCommunication.xinHaoDengFa;

/**
 * @Author: my_code
 * @Create: 2020-12-09 15:24
 */
public class RoadTwo extends Thread{

    SignalLamp lamp;

    public RoadTwo(SignalLamp lamp) {
        this.lamp = lamp;
    }

    @Override
    public void run() {
        while (true){
            lamp.RoadTwoPass();
        }
    }
}
